//
// Created by 86131 on 2023/12/19.
//
#include <iostream>
#include "bits/stdc++.h"
using namespace std;
int main(){
    int n;
    cin>>n;
    int sum=n;
    int c1=n-1;
    int k=0;
    vector<int> a(n,1);
    while(true){
        if(a[0]==n){cout<<n<<"="<<a[0]; break;}
        if(sum<n){//小于情况下向后复制一位
            c1++;
            a[c1] = a[c1-1];
            sum+=a[c1];
        }
        if(sum==n){//等于输出
            int s=0;
            cout<<n<<"=";
            for (int i = 0; s < n; i++) {
                if (!i) {
                    cout << a[i];
                    s +=a[i];
                    continue;
                }
                cout << "+" << a[i];
                s+=a[i];
            }
            if(k<3){
                cout<<";";
                k++;
            }else{
                cout<<endl;k=0;
            }
        }
        if(sum>=n){//大于向前移位
            sum-=a[c1];
            c1--;
            sum++;
            a[c1]++;
        }
}
}